//package com.coolbi.onsupai.core.test;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//import org.apache.log4j.Logger;
//import org.junit.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
//
//import com.coolbi.onsupai.core.biz.GoodsInfoBiz;
//import com.coolbi.onsupai.core.entity.GoodsInfo;
//
//
//@ContextConfiguration(locations = { "classpath*:/spring/applicationContext*.xml" })
//public class GoodsInfoTestCase extends AbstractJUnit4SpringContextTests{
//	
//	private static final Logger log = Logger.getLogger(GoodsInfoTestCase.class);
//	
//	@Autowired
//	private GoodsInfoBiz  goodsInfoBiz;
//
//	public void setGoodsInfoBiz(GoodsInfoBiz goodsInfoBiz) {
//		this.goodsInfoBiz = goodsInfoBiz;
//	}
//	
////	@Test
////	public void testSave() throws Exception {
////		GoodsInfo goodsInfo = new GoodsInfo();
////		goodsInfo.setGoodsName("奥利奥");
////		goodsInfo.setUnitType("零食");
////		goodsInfo.setUnitPrice(5.5);
////		goodsInfoBiz.save(goodsInfo);
////		log.info("goodsInfo.getGoodsName------------->" + goodsInfo.getGoodsName());
////	}
//	
////	@Test
////	public void testDelete() throws Exception{
////		goodsInfoBiz.delete(5);
////		
////	}
//	
////	@Test
////	public void testUpdate() throws Exception{
////		GoodsInfo goodsInfo = new GoodsInfo();
////		goodsInfo.setId(6L);
////		goodsInfo.setGoodsName("麦辣鸡翅");
////		goodsInfo.setUnitPrice(7.3);
////		goodsInfo.setUnitType("油炸食物");
////		goodsInfoBiz.update(goodsInfo);
////	}
//	
////	@Test
////	public void testGet() throws Exception{
////		GoodsInfo goodsInfo = goodsInfoBiz.get(1L);
////		log.info("goodsInfoBiz.get-------------->"+goodsInfo.getGoodsName());
////	}
//	
////	@Test
////	public void testList() throws Exception{
////		List<GoodsInfo> list = goodsInfoBiz.list();
////		log.info("goodsInfoBiz.get------------->"+list.size());
////	}
//	
////	@Test
////	public void testListByPage() throws Exception {
////		List<GoodsInfo> list = goodsInfoBiz.listByPage(0, 5);
////		log.info("list.size------------------->" + list.size());
////	}
//	
////	@Test
////	public void testListByParameter() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("unitPrice", "4999");
////		List<GoodsInfo> list = goodsInfoBiz.find(parameter);
////		log.info("list.size------------------->" + list.size());
////	}
//	
////	@Test
////	public void testListByParameterPage() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("goodsName", "爱疯");
////		List<GoodsInfo> list = goodsInfoBiz.findByPage(parameter, 0, 2);
////		log.info("list.size------------------->" + list.size());
////	}
//	
////	@Test
////	public void testSearch() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("goodsName", "爱疯");
////		List<GoodsInfo> list = goodsInfoBiz.search(parameter, 0, 5);
////		log.info("list.size------------------->" + list.size());
////	}
//	
////	@Test
////	public void testCount() throws 	Exception {
////		log.info("creditBiz.count----------->" + goodsInfoBiz.count());
////	}
//	
////	@Test
////	public void testCountByParameter() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("goodsName", "爱疯");
////		log.info("creditBiz.countByParameter------->" + goodsInfoBiz.count(parameter));
////	}
//	
////	@Test
////	public void testCountByKeyWord() throws Exception {
////		Map<String, Object> parameter = new HashMap<String, Object>();
////		parameter.put("goodsName", "爱疯");
////		log.info("creditBiz.countByParameter------->" + goodsInfoBiz.countByKeyWord(parameter));
////	}
//
////	@Test
////	public void testFindByIds() {
////		String srcIds = "11, 14";
////		List<GoodsInfo> list = goodsInfoBiz.findByIds(srcIds);
////		log.debug("list.size---------------------->" + list.size());
////	}
//}